local M = {
  "williamboman/mason.nvim",
  dependencies = {
    "williamboman/mason-lspconfig.nvim",
  },
}

M.config = function()
  -- import mason
  local mason = require("mason")

  -- import mason-lspconfig
  local mason_lspconfig = require("mason-lspconfig")

  -- enable mason and configure icons
  mason.setup({
    ui = {
      icons = {
        package_installed = "✓",
        package_pending = "➜",
        package_uninstalled = "✗",
      },
    },
  })

  mason_lspconfig.setup({
    -- list of servers for mason to install
    ensure_installed = {
      "clangd",
      --"clang-format",
      "tsserver",
      "html",
      "cssls",
      "tailwindcss",
      "lua_ls",
      "emmet_ls",
      "pyright",
    },
  })
end

return M
